From 4b82de7d4fdcfa2852bae4eff1a644fb97463378 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 4 Jul 2017 16:47:52 +0200 Subject: [PATCH] babl: replace a fprintf (stderr, ...) with babl_log(). It will make it visible in the logcat, for instance in Android Studio. As a general rule, we should use babl_log() for anything which we consider as "logs", unless we want to direct them to a given output for sure (for instance in the case of CLI tools where we want the output to be on standard I/O in terminal, fprintf() still is the best choice). --- babl/babl-extension.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/babl/babl-extension.c b/babl/babl-extension.c index 8edb60d..8e85be5 100644 --- a/babl/babl-extension.c +++ b/babl/babl-extension.c @@ -348,11 +348,10 @@ babl_extension_load_dir_list (const char *dir_list) babl_free (path); if (babl_db_count (db) <= 1) { - fprintf (stderr, -"WARNING: the babl installation seems broken, no extensions found in queried\n" -"BABL_PATH (%s) this means no SIMD/instructions/special case fast paths and\n" -"only slow reference conversions are available, applications might still\n" -"run but software relying on babl for conversions will be slow\n", dir_list); + babl_log ("WARNING: the babl installation seems broken, no extensions found in queried\n" + "BABL_PATH (%s) this means no SIMD/instructions/special case fast paths and\n" + "only slow reference conversions are available, applications might still\n" + "run but software relying on babl for conversions will be slow\n", dir_list); } } -- 2.30.2